<!DOCTYPE html>
<html class="root platform-mac" lang="zh"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <title>我们的小说网站</title>
  <meta name="keywords" content="火星小说，火星，小说排行榜，免费下载阅读，完本小说，玄幻仙侠小说，悬疑灵异小说，现代都市小说，古代言情小说，现代言情小说，最新连载，最热完本，好看的小说，小说阅读网">
  <meta name="description" content="火星小说网，和人类一起阅读，提供最新最热的免费小说在线阅读以及免费下载阅读，各种好看的小说排行榜，包括现代都市小说、悬疑灵异小说、历史军事小说、玄幻仙侠小说、现代言情小说、古代言情小说、纯爱小说，仙侠奇幻小说尽汇于此。优质版权小说：阴间商人，青春不悔少年狂，元始不灭诀，不灭的男神，古蜀国密码，花神录，江山倾：青鸢皇后。">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://c.hotread.com/assets/images/favico.ico" rel="shortcut icon">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-transform">
  <meta property="wb:webmaster" content="9c7fc0d9e77080c8">
  <meta property="qc:admins" content="0237266277607425146375">
  <meta name="sogou_site_verification" content="TbErdP1uQj">
  <meta name="robots" content="all">
  <meta name="baidu-site-verification" content="imoPxKm9GJ">
  <script src="/js/hm.js"></script>
  <script type="text/javascript">if( top.location != document.location ){top.location.replace(document.location.href);}</script>
  <script type="text/javascript">document.documentElement.className = 'root platform-mac'</script>
  <link rel="stylesheet" href="/css/normalize.css">
  <link rel="stylesheet" href="/css/story.css">
    <link rel="stylesheet" href="/css/index.css">
    <style>
    ul{
     list-style: none;
    }
    .slideShow{
     width: 700px;
     height: 400px; /*其实就是图片的高度*/
     border: 1px #eeeeee solid;
     margin: 100px auto;
     position: relative;
     overflow: hidden; /*此处需要将溢出框架的图片部分隐藏*/
    }
    .slideShow ul{
     width: 3000px;
     position: relative; /*此处需注意relative : 对象不可层叠，但将依据left，right，top，bottom等属性在正常文档流中偏移位置，如果没有这个属性，图片将不可左右移动*/
    }
    .slideShow ul li{
     float: left; /*让四张图片左浮动，形成并排的横着布局，方便点击按钮时的左移动*/
     width: 700px;
     height: 400px
    }
    .slideShow .showNav{ /*用绝对定位给数字按钮进行布局*/
     position: absolute;
     right: 10px;
     bottom: 5px;
     text-align:center;
     font-size: 12px;
     line-height: 20px;
    }
    .slideShow .showNav span{
     cursor: pointer;
     display: block;
     float: left;
     width: 20px;
     height: 20px;
     background: #ff5a28;
     margin-left: 2px;
     color: #fff;
    }
    .slideShow .showNav .active{
     background: #b63e1a;
    }
    </style>
</head>
<body>
 @include('public/header');
<div class="hotr-nav" id="hotr-nav">
  <ul class="nav-main win-head">
    <li class="on"><a href="/">首页</a></li>
    <li class=""><a href="{{url('girl')}}">女频</a></li>
    <li class=""><a href="{{url('boy')}}">男频</a></li>
    <li class=""><a href="{{url('ranking')}}">排行</a></li>
    <li class=""><a href="{{url('search')}}">书库</a></li>
    <li class="pay-hot"><a href="https://www.hotread.com/pay" rel="nofollow">充值</a></li>
  </ul>
</div>
<div class="hotr-wrap">
  <div class="wrap-top" id="topController">
    <!--人气榜-->
    <div class="wrap-pop">
      <ul class="cut-btnRect win-head">
        <li class="on"><i class="girl"></i>收藏榜</li>

      </ul>
      <ol class="cut-rect rect-female">
      @foreach ($novels_3 as $k=>$n_3)
          <li class="on">
            <a href="{{url('homepage',$n_3->nid)}}" class="pinkBg">
              <em class="num">{{$k+1}}</em>
              <img alt="{{url('homepage',$n_3->nid)}}" src="{{$n_3->cover_img}}">
              <p class="bookName win-head">{{$n_3->title}}</p>
              <span class="author">{{$n_3->name}}</span>
            </a>
          </li>
      @endforeach




      </ol>

    </div>
    <!--右边盒子-->
    <div class="wrap-rightbox">
      <style type="text/css">
        .my-swipe {
          height: 321px;
        }
      </style>




      <!--图片轮播-->
        <div class="slideShow">
  <!--图片布局开始-->
  <ul>
  @foreach ($novels_0 as $n_0)
  <li><a href="{{url('homepage',$n_0->nid)}}"><img src="{{$n_0->cover_img}}" /></a></li>
  @endforeach
  </ul>
  <!--图片布局结束-->

  <!--按钮布局开始-->
  <div class="showNav">
  <span class="active">1</span>
  <span>2</span>
  <span>3</span>
  <span>4</span>
  </div>
  <!--按钮布局结束-->
 </div>

      <!--推荐-->
    <!--   <div class="recom">
        <dl class="recom-rect">

            @foreach ($novels_1 as $n_1)
                    <dd class="recom-list">
            <a href="{{url('homepage', $n_1->nid)}}">
            【{{$n_1->type}}】{{$n_1->title}}</a>
          </dd>
            @endforeach
                  </dl>
        <dl class="recom-rect">
          @foreach($novels_2 as $n_2)
                    <dd class="recom-list">
            <a href="{{url('homepage', $n_2->nid)}}">【{{$n_2->type}}】{{$n_2->title}}</a>
          </dd>
         @endforeach
                  </dl>
      </div> -->
    </div>
  </div>


<!--火力推荐-->
<div class="fire-recom" id="fireController">
  <div class="recom-main">
    <div class="recom-title">推荐<i></i></div>
    <ul class="girlRect">

    @foreach ($novels_4 as $n_4)
              <li class="recom-list">
          <a href="{{url('homepage',$n_4->nid)}}">
            <img data-original="{{url('homepage',$n_4->nid)}}" alt="" class="loaded" src="{{$n_4->cover_img}}" width="120" height="170">
            <div class="recom-detail">
              <h3 class="bookName win-head">{{$n_4->title}}</h3>
              <em class="author">{{$n_4->name}}</em>
              
              <span class="type">分类：{{$n_4->type}}</span>
              <span class="readBtn">立即阅读</span>
            </div>
          </a>
          <i></i>
        </li>
    @endforeach    
             
          </ul>
    <ul class="boyRect">
    @foreach ($novels_5 as $n_5)
            <li class="recom-list">
        <a href="{{url('homepage',$n_5->nid)}}">
          <img data-original="{{url('homepage',$n_5->nid)}}" alt="{{$n_5->title}}" width="120" height="170" src="{{$n_5->cover_img}}">
          <div class="recom-detail">
            <h3 class="bookName win-head">{{$n_5->title}}</h3>
            <em class="author">{{$n_5->name}}</em>
            
            <span class="type">分类：{{$n_5->type}}</span>
            <span class="readBtn">立即阅读</span>
          </div>
        </a>
        <i></i>
      </li>
    @endforeach
            
          </ul>
  </div>
</div>






<!--更新榜-->
<div class="update" id="updateController">
  <div class="update-title"><i></i>更新榜</div>
  <ol class="update-cutBtn">
    <li class="cutBtn-list on">最新小说更新<p></p></li>
    
  </ol>


  <ul class="bookRect">
    <li class="list-title"><span class="num">序号</span><span class="type">分类</span><span class="bookName">小说名称</span><span class="chapter">更新章节</span><span class="author">作者</span><span class="time">最新更新时间</span></li>
    @foreach ($novels_6 as $k=>$n_6)
    <li>
      <span class="num">{{$k+1}}</span>
      <span class="type"><a href="https://www.hotread.com/library/1-all-all-1-all-all-1-all.html">[{{$n_6->type}}]</a></span>
      <span class="bookName"><a href="{{url('homepage',$n_6->nid)}}">{{$n_6->title}}</a></span>
      <span class="chapter"><a href="{{url('read',$n_6->new)}}">{{$n_6->chtitle}}</a></span>
      <span class="author">{{$n_6->name}}</span>
      <span class="time">{{date('Y/m/d H:i:s',$n_6->edittime)}}</span>
    </li>
    @endforeach
  </ul>
  <p class="more-book"><a href="https://www.hotread.com/library/2-0-all-all-all-all-1-all.html">更多优秀小说</a></p>
</div>

@include('public/footer');


<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>

</body>
<script>
$(document).ready(function(){
 var slideShow=$(".slideShow"), //获取最外层框架的名称
 ul=slideShow.find("ul"),
 showNumber=slideShow.find(".showNav span"),//获取按钮
 oneWidth=slideShow.find("ul li").eq(0).width(); //获取每个图片的宽度
 var timer=null; //定时器返回值，主要用于关闭定时器
 var iNow=0; //iNow为正在展示的图片索引值，当用户打开网页时首先显示第一张图，即索引值为0

 showNumber.on("click",function(){  //为每个按钮绑定一个点击事件
  $(this).addClass("active").siblings().removeClass("active"); //按钮点击时为这个按钮添加高亮状态，并且将其他按钮高亮状态去掉
  var index=$(this).index(); //获取哪个按钮被点击，也就是找到被点击按钮的索引值
  iNow=index;
  ul.animate({
  "left":-oneWidth*iNow, //注意此处用到left属性，所以ul的样式里面需要设置position: relative; 让ul左移N个图片大小的宽度，N根据被点击的按钮索引值iNOWx确定
  })
 });

 timer=setInterval(function(){ //打开定时器
  iNow++;    //让图片的索引值次序加1，这样就可以实现顺序轮播图片
  if(iNow>showNumber.length-1){ //当到达最后一张图的时候，让iNow赋值为第一张图的索引值，轮播效果跳转到第一张图重新开始
  iNow=0;
  }
  showNumber.eq(iNow).trigger("click"); //模拟触发数字按钮的click
 },2000); //2000为轮播的时间
})

</script>
</html>
